package com.zkt.subject.application.convert;

import com.zkt.subject.entity.SubjectUserRecordDTO;
import com.zkt.subject.domain.entity.SubjectUserRecordBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/10/4
 * @description 用户做题记录的实体类型转换器
 **/

@Mapper
public interface SubjectUserRecordDTOConverter {
	
	SubjectUserRecordDTOConverter INSTANCE = Mappers.getMapper(SubjectUserRecordDTOConverter.class);
	
	SubjectUserRecordBO convertDtoToBo(SubjectUserRecordDTO subjectUserRecordDTO);
	
	List<SubjectUserRecordDTO> convertBoListToDto(List<SubjectUserRecordBO> subjectUserRecordBOList);
}
